package com.tmsps.ne4weixin.bean.message.custom;

import com.tmsps.ne4weixin.bean.message.custom.vo.Voice;
import com.tmsps.ne4weixin.config.enumeration.MsgTypeEnum;

import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @Title: VoiceMessage.java
 * @Package: com.tmsps.ne4weixin.bean.custom
 * @Description: 客服消息-发送语音消息
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class VoiceMessage extends BaseMessage {

	/**
	 * 语音消息内容
	 */
	private Voice voice;
	 
	public VoiceMessage(String touser) {
		super(touser, MsgTypeEnum.VOICE);
	}

	public VoiceMessage(String touser, String mediaId) {
		super(touser, MsgTypeEnum.VOICE);
		this.voice = new Voice(mediaId);
	}
	
	public VoiceMessage(String touser, Voice voice) {
		super(touser, MsgTypeEnum.VOICE);
		this.voice = voice;
	}
}
